//
//  MLXToolUtils+MLXFile.h
//  MLX
//
//  Created by SY on 2018/10/7.
//  Copyright © 2018年 SY. All rights reserved.
//

#import "MLXToolUtils.h"
#import <Photos/Photos.h>
@interface MLXToolUtils (MLXFile)
+ (void)removeFileAtPath:(NSString *)path;

/**
 *  将Apple视频录制的格式MOV转换为MP4格式
 *
 */
+ (void)convertVideoFromMOVToMP4:(NSURL *)movUrl complete:(void (^)(NSString *mp4Path, BOOL finished))completeCallback;

/**
 *  获取视频时长
 *
 *  @return 单位秒
 */
+ (CGFloat)getVideoLength:(NSString *)videoPath;

+ (NSString *)getFileSizeString:(CGFloat)fileSize;
/**
 *  获取视频显示尺寸
 *
 */
+ (CGSize)getVideoSize:(NSString *)videoPath;


/**
 * 获取视频缩略图
 */
+ (UIImage *)getVideoThumbnailImage:(NSString *)videoPath;


+ (void)compressSlectVideoAssetForSend:(AVURLAsset *)videoAsset
                        cancelCallback:(void (^)(void))cancelCallback
                          failCallback:(void (^)(void))failCallback
                       successCallback:(void (^)(NSString *mp4Path))successCallback;

@end
